#-------------------------------------------------
#
# Project created by QtCreator 2017-04-19T09:40:09
#
#-------------------------------------------------

QT += core gui network websockets

TARGET = OeasyProxy
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += SINGLE_APPLICATION
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += main.cpp\
    oeasyproxy.cpp \
    sms.cpp \
    access.cpp \
    recognize.cpp \
    ipc.cpp \
    targetcli.cpp \
    intercom.cpp \
    intercomProxy.cpp \
    singleapplication.cpp \
    http/http_parser.cpp \
    http/httpclient.cpp \
    http/httpconnection.cpp \
    http/httprequest.cpp \
    http/httpresponse.cpp \
    http/httpserver.cpp \
    tools/commonfuc.cpp \
    tools/configfile.cpp \
    tools/logfile.cpp \
    tools/settings.cpp \
    uploadOpenDoorInforThread.cpp \
    tools/oeasykey.cpp

HEADERS  += oeasyproxy.h \
    oeasycommon.h \
    sms.h \
    access.h \
    recognize.h \
    ipc.h \
    targetcli.h \
    intercom.h \
    cpsdeocder.h \  
    intercomProxy.h \
    singleapplication.h \
    http/http_parser.h \
    http/httpclient.h \
    http/httpconnection.h \
    http/httprequest.h \
    http/httpresponse.h \
    http/httpserver.h \
    tools/commonfuc.h \
    tools/configfile.h \
    tools/logfile.h \
    tools/settings.h \
    uploadOpenDoorInforThread.h \
    tools/oeasykey.h

win32 {
    CONFIG -= NO_WIDGETS
    INCLUDEPATH += $$PWD/HCNetSDK/win32/include
    INCLUDEPATH += $$PWD/http
    INCLUDEPATH += $$PWD/tools
    LIBS += -L$$PWD/HCNetSDK/win32/libs/ -lGdiPlus -lHCCore -lHCNetSDK -liconv -lPlayCtrl
    LIBS += -L$$PWD/HCNetSDK/win32/libs/HCNetSDKCom/ -lHCAlarm -lHCGeneralCfgMgr -lHCPreview
}

unix {
    #CONFIG+=debug_and_release
    #CONFIG(debug,debug|release)
    #{
    #unix:TARGET=$$join(TARGET,,,_debug)
    #win32:TARGET=$$join(TARGET,,d)
    #}
    CONFIG += NO_WIDGETS
    INCLUDEPATH += $$PWD/HCNetSDK/linux/include
    INCLUDEPATH += $$PWD/http
    INCLUDEPATH += $$PWD/tools
    LIBS += -L$$PWD/HCNetSDK/linux/libs/ -lAudioRender -lHCCore -lhcnetsdk -lhpr -lPlayCtrl -lSuperRender
    LIBS += -L$$PWD/HCNetSDK/linux/libs/HCNetSDKCom/ -lanalyzedata -lHCAlarm -lHCCoreDevCfg -lHCDisplay -lHCGeneralCfgMgr -lHCIndustry -lHCPlayBack -lHCPreview -lHCVoiceTalk -liconv2 -lStreamTransClient -lSystemTransform
 }
NO_WIDGETS {
    CONFIG += c++11
    CONFIG += console
    CONFIG -= app_bundle

    DEFINES += NO_WIDGETS
} else {
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    FORMS    += oeasyproxy.ui
}
